package com.kk.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * the class of springcloud-alibaba
 *
 * <p>
 * .
 *
 * @author little_lunatic
 * @date 2022-11-18
 */
@RestController
@RefreshScope
public class TConfigCenter {

    @Value("${config.info}")
    private String port;

    @GetMapping("/port")
    public String getPort(){
        return port;
    }
}
